﻿namespace WinForms.ControlList.User
{
    using Bll.Systems;
    using Model.Systems;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Runtime.InteropServices;
    using System.Web.Security;
    using System.Windows.Forms;
    using WinForms;
    using WinForms.Properties;

    public class FrmUserAdd : Form
    {
        private Button btn_Close;
        private Button btn_Save;
        private ComboBoxNew combo_RoleName;
        private ComboBoxNew combo_SeeOtherData;
        private IContainer components = null;
        private DateTimePicker dateTime_Birthday;
        public const int HTCAPTION = 2;
        private Label lbl_Birthday;
        private Label lbl_BiTian;
        private Label lbl_ChainName;
        private Label lbl_ChaKaOtherManData;
        private Label lbl_CPassWord;
        private Label lbl_HandSet;
        private Label lbl_IdCode;
        private Label lbl_JueSe;
        private Label lbl_QQNum;
        private Label lbl_TiShi;
        private Label lbl_TiShi2;
        private Label lbl_UserName;
        private Label lbl_UserPass;
        private Label lbl_XuanTian;
        private Label lblTitle;
        private Panel pan_14;
        private Panel pan_15;
        private Panel pan_16;
        private Panel pan_AllPanel;
        private Panel pan_AllPlanes;
        private Panel pan_Bottoms;
        private Panel pan_Dock;
        private Panel pan_DockBottom;
        private Panel pan_DockLeft;
        private Panel pan_DockRight;
        private Panel pan_Lefts;
        private Panel pan_Rights;
        private Panel pan_Table1;
        private Panel pan_Table2;
        private Panel pan_td10;
        private Panel pan_td11;
        private Panel pan_td12;
        private Panel pan_td13;
        private Panel pan_td5;
        private Panel pan_td6;
        private Panel pan_td7;
        private Panel pan_td8;
        private Panel pan_td9;
        private Panel pan_Top;
        private Panel pan_TopLeft;
        private Panel pan_TopRight;
        private Panel pan_ZhongJian;
        private Panel pane_TopT;
        private Panel panel_BiTian;
        private Panel panel_Button;
        private Panel panel_JianGe;
        private Panel panel_table3;
        private Panel panel_td1;
        private Panel panel_td2;
        private Panel panel_td3;
        private Panel panel_td4;
        private Panel panel_XuanTian;
        private Panel panel1;
        private Panel panel2;
        private Panel panel3;
        private Panel panel4;
        private Panel panel5;
        private Panel panel6;
        private Panel panel7;
        private Panel panel9;
        public FrmPrompt prom = null;
        public const int SC_MOVE = 0xf010;
        private TextBox txt_CUserPass;
        private TextBox txt_HandSet;
        private TextBox txt_IdCode;
        private TextBox txt_LoginName;
        private TextBox txt_QQNum;
        private TextBox txt_UserName;
        private TextBox txt_UserPass;
        public const int WM_SYSCOMMAND = 0x112;

        public FrmUserAdd()
        {
            this.InitializeComponent();
            base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            base.SetStyle(ControlStyles.UserPaint, true);
            base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.combo_SeeOtherData.AddItem("否", "0");
            this.combo_SeeOtherData.AddItem("是", "1");
            this.combo_SeeOtherData.SelectedIndex = 0;
            this.txt_LoginName.Select();
            base.KeyPreview = true;
            base.KeyDown += new KeyEventHandler(this.Form_KeyDown);
        }

        private void btn_Close_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        private void btn_Save_Click(object sender, EventArgs e)
        {
            Exception exception;
            try
            {
                UserEnt loginUser = PublicAppliction.LoginUser;
                if (this.txt_LoginName.Text == "")
                {
                    this.prom = new FrmPrompt(false, "请输入登录名称!");
                    this.prom.ShowDialog();
                    this.txt_LoginName.Select();
                }
                else if (this.txt_UserName.Text == "")
                {
                    this.prom = new FrmPrompt(false, "请输入员工名称!");
                    this.prom.ShowDialog();
                    this.txt_UserName.Select();
                }
                else if (this.txt_UserPass.Text == "")
                {
                    this.prom = new FrmPrompt(false, "请输入登录密码!");
                    this.prom.ShowDialog();
                    this.txt_UserPass.Select();
                }
                else if (this.txt_CUserPass.Text == "")
                {
                    this.prom = new FrmPrompt(false, "请再输入一次登录密码!");
                    this.prom.ShowDialog();
                    this.txt_CUserPass.Select();
                }
                else if (this.combo_RoleName.Text == "")
                {
                    this.prom = new FrmPrompt(false, "请选择角色名称!");
                    this.prom.ShowDialog();
                    this.combo_RoleName.Select();
                }
                else if (this.txt_CUserPass.Text != this.txt_UserPass.Text)
                {
                    this.prom = new FrmPrompt(false, "请检查两次输入的密码是否一致!");
                    this.prom.ShowDialog();
                    this.txt_UserPass.Text = "";
                    this.txt_CUserPass.Text = "";
                    this.txt_UserPass.Select();
                }
                else
                {
                    UserEnt model = new UserEnt();
                    if (UserBll.GetList("loginName='" + this.txt_LoginName.Text + "'").Rows.Count > 0)
                    {
                        this.prom = new FrmPrompt(false, "该登录名已有人使用请更换一个!");
                        this.prom.ShowDialog();
                        this.txt_LoginName.Select();
                    }
                    else
                    {
                        model.ChainNum = loginUser.ChainNum;
                        model.CreateTime = DateTime.Now;
                        model.DeptId = 0;
                        model.IdCode = this.txt_IdCode.Text;
                        if (this.combo_SeeOtherData.Text == "否")
                        {
                            model.IsSeeOtherData = 0;
                        }
                        else
                        {
                            model.IsSeeOtherData = 1;
                        }
                        model.IsSuperManage = 0;
                        model.IsUseLogin = 1;
                        model.LoginName = this.txt_LoginName.Text;
                        model.OrderByNum = 0;
                        model.RoleId = int.Parse(((ComboxItem) this.combo_RoleName.SelectedItem).Value.ToString());
                        model.SuperRoleId = 0;
                        model.UserName = this.txt_UserName.Text;
                        model.UserPass = FormsAuthentication.HashPasswordForStoringInConfigFile(this.txt_UserPass.Text, "MD5").ToLower();
                        model.UserPic = "";
                        UserBll.Add(model);
                        int maxId = UserBll.GetMaxId("ChainNum=" + loginUser.ChainNum);
                        UserInfoEnt ent3 = new UserInfoEnt {
                            QQNum = this.txt_QQNum.Text,
                            HandSet = this.txt_HandSet.Text,
                            Infos = "",
                            ext = ""
                        };
                        try
                        {
                            ent3.Birthday = this.dateTime_Birthday.Value;
                        }
                        catch (Exception exception1)
                        {
                            exception = exception1;
                            ent3.Birthday = DateTime.Now;
                        }
                        ent3.email = "";
                        ent3.MsnNum = "";
                        ent3.PhotoAddress = "";
                        ent3.Postitions = " ";
                        ent3.UserTitle = "";
                        ent3.UserId = maxId;
                        UserInfoBll.Add(ent3);
                        this.prom = new FrmPrompt(true, "员工信息增加成功");
                        this.prom.Show();
                        WorkLogBll.AddNewLog("员工信息增加成功", "FrmDeptAdd", PublicAppliction.LoginUser);
                        base.DialogResult = DialogResult.OK;
                        base.Close();
                    }
                }
            }
            catch (Exception exception2)
            {
                exception = exception2;
                ErrorsBll.NewException(exception, PublicAppliction.LoginUser);
            }
        }

        private void combo_RoleName_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.combo_RoleName.Select();
            }
        }

        private void combo_SeeOtherData_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.txt_QQNum.Select();
            }
        }

        private void dateTime_Birthday_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.txt_HandSet.Select();
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        protected void Form_KeyDown(object sender, KeyEventArgs e)
        {
            if ((e.Control && (e.KeyCode == Keys.S)) && (MessageBox.Show("您确定要保存吗?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) == DialogResult.OK))
            {
                this.btn_Save_Click(null, null);
            }
        }

        private void FrmUserAdd_Load(object sender, EventArgs e)
        {
            this.combo_RoleName.BeginUpdate();
            UserEnt loginUser = PublicAppliction.LoginUser;
            DataTable list = RoleBll.GetList("");
            foreach (DataRow row in list.Rows)
            {
                this.combo_RoleName.AddItem(row["RoleName"].ToString(), row["RoleId"].ToString());
            }
            if (list.Rows.Count > 0)
            {
                this.combo_RoleName.SelectedIndex = 0;
            }
            this.combo_RoleName.EndUpdate();
        }

        private void InitializeComponent()
        {
            this.pan_ZhongJian = new Panel();
            this.lblTitle = new Label();
            this.pan_TopRight = new Panel();
            this.pan_DockLeft = new Panel();
            this.pan_Dock = new Panel();
            this.pan_AllPanel = new Panel();
            this.pan_AllPlanes = new Panel();
            this.panel7 = new Panel();
            this.panel2 = new Panel();
            this.panel3 = new Panel();
            this.txt_IdCode = new TextBox();
            this.panel4 = new Panel();
            this.lbl_IdCode = new Label();
            this.panel5 = new Panel();
            this.txt_HandSet = new TextBox();
            this.panel6 = new Panel();
            this.lbl_HandSet = new Label();
            this.panel1 = new Panel();
            this.pan_16 = new Panel();
            this.dateTime_Birthday = new DateTimePicker();
            this.pan_15 = new Panel();
            this.lbl_Birthday = new Label();
            this.pan_14 = new Panel();
            this.txt_QQNum = new TextBox();
            this.pan_td13 = new Panel();
            this.lbl_QQNum = new Label();
            this.panel_XuanTian = new Panel();
            this.lbl_XuanTian = new Label();
            this.panel_JianGe = new Panel();
            this.panel_table3 = new Panel();
            this.pan_td12 = new Panel();
            this.combo_SeeOtherData = new ComboBoxNew();
            this.pan_td11 = new Panel();
            this.lbl_ChaKaOtherManData = new Label();
            this.pan_td10 = new Panel();
            this.combo_RoleName = new ComboBoxNew();
            this.pan_td9 = new Panel();
            this.lbl_JueSe = new Label();
            this.pan_Table2 = new Panel();
            this.pan_td8 = new Panel();
            this.txt_CUserPass = new TextBox();
            this.pan_td7 = new Panel();
            this.lbl_CPassWord = new Label();
            this.pan_td6 = new Panel();
            this.txt_UserPass = new TextBox();
            this.pan_td5 = new Panel();
            this.lbl_UserPass = new Label();
            this.pan_Table1 = new Panel();
            this.panel_td4 = new Panel();
            this.txt_UserName = new TextBox();
            this.panel_td3 = new Panel();
            this.lbl_UserName = new Label();
            this.panel_td2 = new Panel();
            this.txt_LoginName = new TextBox();
            this.panel_td1 = new Panel();
            this.lbl_ChainName = new Label();
            this.panel_BiTian = new Panel();
            this.lbl_BiTian = new Label();
            this.panel_Button = new Panel();
            this.lbl_TiShi2 = new Label();
            this.lbl_TiShi = new Label();
            this.btn_Close = new Button();
            this.btn_Save = new Button();
            this.panel9 = new Panel();
            this.pan_Rights = new Panel();
            this.pan_Lefts = new Panel();
            this.pan_Bottoms = new Panel();
            this.pane_TopT = new Panel();
            this.pan_DockBottom = new Panel();
            this.pan_DockRight = new Panel();
            this.pan_Top = new Panel();
            this.pan_TopLeft = new Panel();
            this.pan_ZhongJian.SuspendLayout();
            this.pan_Dock.SuspendLayout();
            this.pan_AllPanel.SuspendLayout();
            this.pan_AllPlanes.SuspendLayout();
            this.panel2.SuspendLayout();
            this.panel3.SuspendLayout();
            this.panel4.SuspendLayout();
            this.panel5.SuspendLayout();
            this.panel6.SuspendLayout();
            this.panel1.SuspendLayout();
            this.pan_16.SuspendLayout();
            this.pan_15.SuspendLayout();
            this.pan_14.SuspendLayout();
            this.pan_td13.SuspendLayout();
            this.panel_XuanTian.SuspendLayout();
            this.panel_table3.SuspendLayout();
            this.pan_td12.SuspendLayout();
            this.pan_td11.SuspendLayout();
            this.pan_td10.SuspendLayout();
            this.pan_td9.SuspendLayout();
            this.pan_Table2.SuspendLayout();
            this.pan_td8.SuspendLayout();
            this.pan_td7.SuspendLayout();
            this.pan_td6.SuspendLayout();
            this.pan_td5.SuspendLayout();
            this.pan_Table1.SuspendLayout();
            this.panel_td4.SuspendLayout();
            this.panel_td3.SuspendLayout();
            this.panel_td2.SuspendLayout();
            this.panel_td1.SuspendLayout();
            this.panel_BiTian.SuspendLayout();
            this.panel_Button.SuspendLayout();
            this.pan_Top.SuspendLayout();
            base.SuspendLayout();
            this.pan_ZhongJian.BackgroundImage = Resources.uc_title_2;
            this.pan_ZhongJian.Controls.Add(this.lblTitle);
            this.pan_ZhongJian.Dock = DockStyle.Fill;
            this.pan_ZhongJian.Location = new Point(0x1f, 0);
            this.pan_ZhongJian.Name = "pan_ZhongJian";
            this.pan_ZhongJian.Size = new Size(0x312, 0x20);
            this.pan_ZhongJian.TabIndex = 2;
            this.pan_ZhongJian.MouseDown += new MouseEventHandler(this.pan_ZhongJian_MouseDown);
            this.lblTitle.AutoSize = true;
            this.lblTitle.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.lblTitle.Font = new Font("宋体", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
            this.lblTitle.ForeColor = Color.FromArgb(0x3b, 0x56, 20);
            this.lblTitle.Location = new Point(6, 8);
            this.lblTitle.Name = "lblTitle";
            this.lblTitle.Size = new Size(0x5b, 13);
            this.lblTitle.TabIndex = 0;
            this.lblTitle.Text = "新增员工信息";
            this.pan_TopRight.BackgroundImage = Resources.uc_title_1;
            this.pan_TopRight.Dock = DockStyle.Right;
            this.pan_TopRight.Location = new Point(0x331, 0);
            this.pan_TopRight.Name = "pan_TopRight";
            this.pan_TopRight.Size = new Size(5, 0x20);
            this.pan_TopRight.TabIndex = 1;
            this.pan_DockLeft.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockLeft.Dock = DockStyle.Left;
            this.pan_DockLeft.Location = new Point(0, 0);
            this.pan_DockLeft.Name = "pan_DockLeft";
            this.pan_DockLeft.Size = new Size(1, 270);
            this.pan_DockLeft.TabIndex = 0;
            this.pan_Dock.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.pan_Dock.Controls.Add(this.pan_AllPanel);
            this.pan_Dock.Controls.Add(this.pan_DockBottom);
            this.pan_Dock.Controls.Add(this.pan_DockRight);
            this.pan_Dock.Controls.Add(this.pan_DockLeft);
            this.pan_Dock.Dock = DockStyle.Fill;
            this.pan_Dock.Location = new Point(0, 0x20);
            this.pan_Dock.Name = "pan_Dock";
            this.pan_Dock.Size = new Size(0x336, 270);
            this.pan_Dock.TabIndex = 5;
            this.pan_AllPanel.BackColor = Color.White;
            this.pan_AllPanel.Controls.Add(this.pan_AllPlanes);
            this.pan_AllPanel.Controls.Add(this.pan_Rights);
            this.pan_AllPanel.Controls.Add(this.pan_Lefts);
            this.pan_AllPanel.Controls.Add(this.pan_Bottoms);
            this.pan_AllPanel.Controls.Add(this.pane_TopT);
            this.pan_AllPanel.Dock = DockStyle.Fill;
            this.pan_AllPanel.Location = new Point(1, 0);
            this.pan_AllPanel.Name = "pan_AllPanel";
            this.pan_AllPanel.Size = new Size(820, 0x10d);
            this.pan_AllPanel.TabIndex = 3;
            this.pan_AllPlanes.Controls.Add(this.panel7);
            this.pan_AllPlanes.Controls.Add(this.panel2);
            this.pan_AllPlanes.Controls.Add(this.panel1);
            this.pan_AllPlanes.Controls.Add(this.panel_XuanTian);
            this.pan_AllPlanes.Controls.Add(this.panel_JianGe);
            this.pan_AllPlanes.Controls.Add(this.panel_table3);
            this.pan_AllPlanes.Controls.Add(this.pan_Table2);
            this.pan_AllPlanes.Controls.Add(this.pan_Table1);
            this.pan_AllPlanes.Controls.Add(this.panel_BiTian);
            this.pan_AllPlanes.Controls.Add(this.panel_Button);
            this.pan_AllPlanes.Controls.Add(this.panel9);
            this.pan_AllPlanes.Dock = DockStyle.Fill;
            this.pan_AllPlanes.Location = new Point(10, 10);
            this.pan_AllPlanes.Name = "pan_AllPlanes";
            this.pan_AllPlanes.Size = new Size(800, 0xf9);
            this.pan_AllPlanes.TabIndex = 4;
            this.panel7.Dock = DockStyle.Top;
            this.panel7.Location = new Point(0, 0xb9);
            this.panel7.Name = "panel7";
            this.panel7.Size = new Size(800, 10);
            this.panel7.TabIndex = 15;
            this.panel2.Controls.Add(this.panel3);
            this.panel2.Controls.Add(this.panel4);
            this.panel2.Controls.Add(this.panel5);
            this.panel2.Controls.Add(this.panel6);
            this.panel2.Dock = DockStyle.Top;
            this.panel2.Location = new Point(0, 160);
            this.panel2.Name = "panel2";
            this.panel2.Size = new Size(800, 0x19);
            this.panel2.TabIndex = 14;
            this.panel3.Controls.Add(this.txt_IdCode);
            this.panel3.Dock = DockStyle.Left;
            this.panel3.Location = new Point(600, 0);
            this.panel3.Name = "panel3";
            this.panel3.Size = new Size(200, 0x19);
            this.panel3.TabIndex = 3;
            this.panel3.Paint += new PaintEventHandler(this.panel3_Paint);
            this.txt_IdCode.Location = new Point(3, 2);
            this.txt_IdCode.MaxLength = 0x12;
            this.txt_IdCode.Name = "txt_IdCode";
            this.txt_IdCode.Size = new Size(0xab, 0x15);
            this.txt_IdCode.TabIndex = 2;
            this.txt_IdCode.KeyPress += new KeyPressEventHandler(this.txt_IdCode_KeyPress);
            this.panel4.Controls.Add(this.lbl_IdCode);
            this.panel4.Dock = DockStyle.Left;
            this.panel4.Location = new Point(400, 0);
            this.panel4.Name = "panel4";
            this.panel4.Size = new Size(200, 0x19);
            this.panel4.TabIndex = 2;
            this.panel4.Paint += new PaintEventHandler(this.panel4_Paint);
            this.lbl_IdCode.AutoSize = true;
            this.lbl_IdCode.Location = new Point(0x7b, 6);
            this.lbl_IdCode.Name = "lbl_IdCode";
            this.lbl_IdCode.Size = new Size(0x47, 12);
            this.lbl_IdCode.TabIndex = 2;
            this.lbl_IdCode.Text = "身份证号码:";
            this.lbl_IdCode.TextAlign = ContentAlignment.MiddleRight;
            this.panel5.Controls.Add(this.txt_HandSet);
            this.panel5.Dock = DockStyle.Left;
            this.panel5.Location = new Point(200, 0);
            this.panel5.Name = "panel5";
            this.panel5.Size = new Size(200, 0x19);
            this.panel5.TabIndex = 1;
            this.panel5.Paint += new PaintEventHandler(this.panel5_Paint);
            this.txt_HandSet.Location = new Point(3, 2);
            this.txt_HandSet.MaxLength = 11;
            this.txt_HandSet.Name = "txt_HandSet";
            this.txt_HandSet.Size = new Size(0xab, 0x15);
            this.txt_HandSet.TabIndex = 1;
            this.txt_HandSet.KeyPress += new KeyPressEventHandler(this.txt_HandSet_KeyPress);
            this.panel6.Controls.Add(this.lbl_HandSet);
            this.panel6.Dock = DockStyle.Left;
            this.panel6.Location = new Point(0, 0);
            this.panel6.Name = "panel6";
            this.panel6.Size = new Size(200, 0x19);
            this.panel6.TabIndex = 0;
            this.panel6.Paint += new PaintEventHandler(this.panel6_Paint);
            this.lbl_HandSet.Location = new Point(0x6c, 6);
            this.lbl_HandSet.Name = "lbl_HandSet";
            this.lbl_HandSet.Size = new Size(0x54, 12);
            this.lbl_HandSet.TabIndex = 1;
            this.lbl_HandSet.Text = "手机号:";
            this.lbl_HandSet.TextAlign = ContentAlignment.MiddleRight;
            this.panel1.Controls.Add(this.pan_16);
            this.panel1.Controls.Add(this.pan_15);
            this.panel1.Controls.Add(this.pan_14);
            this.panel1.Controls.Add(this.pan_td13);
            this.panel1.Dock = DockStyle.Top;
            this.panel1.Location = new Point(0, 0x87);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(800, 0x19);
            this.panel1.TabIndex = 13;
            this.pan_16.Controls.Add(this.dateTime_Birthday);
            this.pan_16.Dock = DockStyle.Left;
            this.pan_16.Location = new Point(600, 0);
            this.pan_16.Name = "pan_16";
            this.pan_16.Size = new Size(200, 0x19);
            this.pan_16.TabIndex = 3;
            this.pan_16.Paint += new PaintEventHandler(this.pan_16_Paint);
            this.dateTime_Birthday.Location = new Point(3, 2);
            this.dateTime_Birthday.Name = "dateTime_Birthday";
            this.dateTime_Birthday.Size = new Size(0xab, 0x15);
            this.dateTime_Birthday.TabIndex = 0;
            this.dateTime_Birthday.KeyPress += new KeyPressEventHandler(this.dateTime_Birthday_KeyPress);
            this.pan_15.Controls.Add(this.lbl_Birthday);
            this.pan_15.Dock = DockStyle.Left;
            this.pan_15.Location = new Point(400, 0);
            this.pan_15.Name = "pan_15";
            this.pan_15.Size = new Size(200, 0x19);
            this.pan_15.TabIndex = 2;
            this.pan_15.Paint += new PaintEventHandler(this.pan_15_Paint);
            this.lbl_Birthday.AutoSize = true;
            this.lbl_Birthday.Location = new Point(0x87, 6);
            this.lbl_Birthday.Name = "lbl_Birthday";
            this.lbl_Birthday.Size = new Size(0x3b, 12);
            this.lbl_Birthday.TabIndex = 2;
            this.lbl_Birthday.Text = "员工生日:";
            this.lbl_Birthday.TextAlign = ContentAlignment.MiddleRight;
            this.pan_14.Controls.Add(this.txt_QQNum);
            this.pan_14.Dock = DockStyle.Left;
            this.pan_14.Location = new Point(200, 0);
            this.pan_14.Name = "pan_14";
            this.pan_14.Size = new Size(200, 0x19);
            this.pan_14.TabIndex = 1;
            this.pan_14.Paint += new PaintEventHandler(this.pan_14_Paint);
            this.txt_QQNum.Location = new Point(3, 2);
            this.txt_QQNum.MaxLength = 12;
            this.txt_QQNum.Name = "txt_QQNum";
            this.txt_QQNum.Size = new Size(0xab, 0x15);
            this.txt_QQNum.TabIndex = 1;
            this.txt_QQNum.KeyPress += new KeyPressEventHandler(this.txt_QQNum_KeyPress);
            this.pan_td13.Controls.Add(this.lbl_QQNum);
            this.pan_td13.Dock = DockStyle.Left;
            this.pan_td13.Location = new Point(0, 0);
            this.pan_td13.Name = "pan_td13";
            this.pan_td13.Size = new Size(200, 0x19);
            this.pan_td13.TabIndex = 0;
            this.pan_td13.Paint += new PaintEventHandler(this.pan_td13_Paint);
            this.lbl_QQNum.Location = new Point(0x6c, 6);
            this.lbl_QQNum.Name = "lbl_QQNum";
            this.lbl_QQNum.Size = new Size(0x54, 12);
            this.lbl_QQNum.TabIndex = 1;
            this.lbl_QQNum.Text = "QQ号:";
            this.lbl_QQNum.TextAlign = ContentAlignment.MiddleRight;
            this.panel_XuanTian.Controls.Add(this.lbl_XuanTian);
            this.panel_XuanTian.Dock = DockStyle.Top;
            this.panel_XuanTian.Location = new Point(0, 110);
            this.panel_XuanTian.Name = "panel_XuanTian";
            this.panel_XuanTian.Size = new Size(800, 0x19);
            this.panel_XuanTian.TabIndex = 12;
            this.panel_XuanTian.Paint += new PaintEventHandler(this.panel_XuanTian_Paint);
            this.lbl_XuanTian.AutoSize = true;
            this.lbl_XuanTian.Location = new Point(10, 6);
            this.lbl_XuanTian.Name = "lbl_XuanTian";
            this.lbl_XuanTian.Size = new Size(0x35, 12);
            this.lbl_XuanTian.TabIndex = 0;
            this.lbl_XuanTian.Text = "选填项目";
            this.panel_JianGe.Dock = DockStyle.Top;
            this.panel_JianGe.Location = new Point(0, 100);
            this.panel_JianGe.Name = "panel_JianGe";
            this.panel_JianGe.Size = new Size(800, 10);
            this.panel_JianGe.TabIndex = 11;
            this.panel_table3.Controls.Add(this.pan_td12);
            this.panel_table3.Controls.Add(this.pan_td11);
            this.panel_table3.Controls.Add(this.pan_td10);
            this.panel_table3.Controls.Add(this.pan_td9);
            this.panel_table3.Dock = DockStyle.Top;
            this.panel_table3.Location = new Point(0, 0x4b);
            this.panel_table3.Name = "panel_table3";
            this.panel_table3.Size = new Size(800, 0x19);
            this.panel_table3.TabIndex = 10;
            this.pan_td12.Controls.Add(this.combo_SeeOtherData);
            this.pan_td12.Dock = DockStyle.Left;
            this.pan_td12.Location = new Point(600, 0);
            this.pan_td12.Name = "pan_td12";
            this.pan_td12.Size = new Size(200, 0x19);
            this.pan_td12.TabIndex = 3;
            this.pan_td12.Paint += new PaintEventHandler(this.pan_td12_Paint);
            this.combo_SeeOtherData.DisplayMember = "Name";
            this.combo_SeeOtherData.DropDownStyle = ComboBoxStyle.DropDownList;
            this.combo_SeeOtherData.FormattingEnabled = true;
            this.combo_SeeOtherData.Location = new Point(3, 2);
            this.combo_SeeOtherData.Name = "combo_SeeOtherData";
            this.combo_SeeOtherData.SelectValueNew = "";
            this.combo_SeeOtherData.Size = new Size(0xab, 20);
            this.combo_SeeOtherData.TabIndex = 1;
            this.combo_SeeOtherData.ValueMember = "Value";
            this.combo_SeeOtherData.KeyPress += new KeyPressEventHandler(this.combo_SeeOtherData_KeyPress);
            this.pan_td11.Controls.Add(this.lbl_ChaKaOtherManData);
            this.pan_td11.Dock = DockStyle.Left;
            this.pan_td11.Location = new Point(400, 0);
            this.pan_td11.Name = "pan_td11";
            this.pan_td11.Size = new Size(200, 0x19);
            this.pan_td11.TabIndex = 2;
            this.pan_td11.Paint += new PaintEventHandler(this.pan_td11_Paint);
            this.lbl_ChaKaOtherManData.Location = new Point(0x25, 7);
            this.lbl_ChaKaOtherManData.Name = "lbl_ChaKaOtherManData";
            this.lbl_ChaKaOtherManData.Size = new Size(0x9d, 12);
            this.lbl_ChaKaOtherManData.TabIndex = 2;
            this.lbl_ChaKaOtherManData.Text = "是否允许查看其他人数据:";
            this.lbl_ChaKaOtherManData.TextAlign = ContentAlignment.MiddleRight;
            this.pan_td10.Controls.Add(this.combo_RoleName);
            this.pan_td10.Dock = DockStyle.Left;
            this.pan_td10.Location = new Point(200, 0);
            this.pan_td10.Name = "pan_td10";
            this.pan_td10.Size = new Size(200, 0x19);
            this.pan_td10.TabIndex = 1;
            this.pan_td10.Paint += new PaintEventHandler(this.pan_td10_Paint);
            this.combo_RoleName.DisplayMember = "Name";
            this.combo_RoleName.DropDownStyle = ComboBoxStyle.DropDownList;
            this.combo_RoleName.FormattingEnabled = true;
            this.combo_RoleName.Location = new Point(3, 2);
            this.combo_RoleName.Name = "combo_RoleName";
            this.combo_RoleName.SelectValueNew = "";
            this.combo_RoleName.Size = new Size(0xab, 20);
            this.combo_RoleName.TabIndex = 0;
            this.combo_RoleName.ValueMember = "Value";
            this.combo_RoleName.KeyPress += new KeyPressEventHandler(this.combo_RoleName_KeyPress);
            this.pan_td9.Controls.Add(this.lbl_JueSe);
            this.pan_td9.Dock = DockStyle.Left;
            this.pan_td9.Location = new Point(0, 0);
            this.pan_td9.Name = "pan_td9";
            this.pan_td9.Size = new Size(200, 0x19);
            this.pan_td9.TabIndex = 0;
            this.pan_td9.Paint += new PaintEventHandler(this.pan_td9_Paint);
            this.lbl_JueSe.Location = new Point(0x6c, 6);
            this.lbl_JueSe.Name = "lbl_JueSe";
            this.lbl_JueSe.Size = new Size(0x54, 12);
            this.lbl_JueSe.TabIndex = 1;
            this.lbl_JueSe.Text = "角色:";
            this.lbl_JueSe.TextAlign = ContentAlignment.MiddleRight;
            this.pan_Table2.Controls.Add(this.pan_td8);
            this.pan_Table2.Controls.Add(this.pan_td7);
            this.pan_Table2.Controls.Add(this.pan_td6);
            this.pan_Table2.Controls.Add(this.pan_td5);
            this.pan_Table2.Dock = DockStyle.Top;
            this.pan_Table2.Location = new Point(0, 50);
            this.pan_Table2.Name = "pan_Table2";
            this.pan_Table2.Size = new Size(800, 0x19);
            this.pan_Table2.TabIndex = 9;
            this.pan_td8.Controls.Add(this.txt_CUserPass);
            this.pan_td8.Dock = DockStyle.Left;
            this.pan_td8.Location = new Point(600, 0);
            this.pan_td8.Name = "pan_td8";
            this.pan_td8.Size = new Size(200, 0x19);
            this.pan_td8.TabIndex = 3;
            this.pan_td8.Paint += new PaintEventHandler(this.pan_td8_Paint);
            this.txt_CUserPass.Location = new Point(3, 2);
            this.txt_CUserPass.MaxLength = 11;
            this.txt_CUserPass.Name = "txt_CUserPass";
            this.txt_CUserPass.PasswordChar = '*';
            this.txt_CUserPass.Size = new Size(0xab, 0x15);
            this.txt_CUserPass.TabIndex = 2;
            this.txt_CUserPass.KeyPress += new KeyPressEventHandler(this.txt_CUserPass_KeyPress);
            this.pan_td7.Controls.Add(this.lbl_CPassWord);
            this.pan_td7.Dock = DockStyle.Left;
            this.pan_td7.Location = new Point(400, 0);
            this.pan_td7.Name = "pan_td7";
            this.pan_td7.Size = new Size(200, 0x19);
            this.pan_td7.TabIndex = 2;
            this.pan_td7.Paint += new PaintEventHandler(this.pan_td7_Paint);
            this.lbl_CPassWord.Location = new Point(110, 6);
            this.lbl_CPassWord.Name = "lbl_CPassWord";
            this.lbl_CPassWord.Size = new Size(0x54, 12);
            this.lbl_CPassWord.TabIndex = 2;
            this.lbl_CPassWord.Text = "重复登录密码:";
            this.lbl_CPassWord.TextAlign = ContentAlignment.MiddleRight;
            this.pan_td6.Controls.Add(this.txt_UserPass);
            this.pan_td6.Dock = DockStyle.Left;
            this.pan_td6.Location = new Point(200, 0);
            this.pan_td6.Name = "pan_td6";
            this.pan_td6.Size = new Size(200, 0x19);
            this.pan_td6.TabIndex = 1;
            this.pan_td6.Paint += new PaintEventHandler(this.pan_td6_Paint);
            this.txt_UserPass.Location = new Point(3, 2);
            this.txt_UserPass.MaxLength = 11;
            this.txt_UserPass.Name = "txt_UserPass";
            this.txt_UserPass.PasswordChar = '*';
            this.txt_UserPass.Size = new Size(0xab, 0x15);
            this.txt_UserPass.TabIndex = 3;
            this.txt_UserPass.KeyPress += new KeyPressEventHandler(this.txt_UserPass_KeyPress);
            this.pan_td5.Controls.Add(this.lbl_UserPass);
            this.pan_td5.Dock = DockStyle.Left;
            this.pan_td5.Location = new Point(0, 0);
            this.pan_td5.Name = "pan_td5";
            this.pan_td5.Size = new Size(200, 0x19);
            this.pan_td5.TabIndex = 0;
            this.pan_td5.Paint += new PaintEventHandler(this.pan_td5_Paint);
            this.lbl_UserPass.Location = new Point(0x6c, 6);
            this.lbl_UserPass.Name = "lbl_UserPass";
            this.lbl_UserPass.Size = new Size(0x54, 12);
            this.lbl_UserPass.TabIndex = 1;
            this.lbl_UserPass.Text = "登录密码:";
            this.lbl_UserPass.TextAlign = ContentAlignment.MiddleRight;
            this.pan_Table1.Controls.Add(this.panel_td4);
            this.pan_Table1.Controls.Add(this.panel_td3);
            this.pan_Table1.Controls.Add(this.panel_td2);
            this.pan_Table1.Controls.Add(this.panel_td1);
            this.pan_Table1.Dock = DockStyle.Top;
            this.pan_Table1.Location = new Point(0, 0x19);
            this.pan_Table1.Name = "pan_Table1";
            this.pan_Table1.Size = new Size(800, 0x19);
            this.pan_Table1.TabIndex = 8;
            this.panel_td4.Controls.Add(this.txt_UserName);
            this.panel_td4.Dock = DockStyle.Left;
            this.panel_td4.Location = new Point(600, 0);
            this.panel_td4.Name = "panel_td4";
            this.panel_td4.Size = new Size(200, 0x19);
            this.panel_td4.TabIndex = 3;
            this.panel_td4.Paint += new PaintEventHandler(this.panel_td4_Paint);
            this.txt_UserName.Location = new Point(3, 2);
            this.txt_UserName.MaxLength = 6;
            this.txt_UserName.Name = "txt_UserName";
            this.txt_UserName.Size = new Size(0xab, 0x15);
            this.txt_UserName.TabIndex = 1;
            this.txt_UserName.KeyPress += new KeyPressEventHandler(this.txt_UserName_KeyPress);
            this.panel_td3.Controls.Add(this.lbl_UserName);
            this.panel_td3.Dock = DockStyle.Left;
            this.panel_td3.Location = new Point(400, 0);
            this.panel_td3.Name = "panel_td3";
            this.panel_td3.Size = new Size(200, 0x19);
            this.panel_td3.TabIndex = 2;
            this.panel_td3.Paint += new PaintEventHandler(this.panel_td3_Paint);
            this.lbl_UserName.Location = new Point(110, 5);
            this.lbl_UserName.Name = "lbl_UserName";
            this.lbl_UserName.Size = new Size(0x54, 12);
            this.lbl_UserName.TabIndex = 1;
            this.lbl_UserName.Text = "员工姓名:";
            this.lbl_UserName.TextAlign = ContentAlignment.MiddleRight;
            this.panel_td2.Controls.Add(this.txt_LoginName);
            this.panel_td2.Dock = DockStyle.Left;
            this.panel_td2.Location = new Point(200, 0);
            this.panel_td2.Name = "panel_td2";
            this.panel_td2.Size = new Size(200, 0x19);
            this.panel_td2.TabIndex = 1;
            this.panel_td2.Paint += new PaintEventHandler(this.panel_td2_Paint);
            this.txt_LoginName.Location = new Point(3, 2);
            this.txt_LoginName.MaxLength = 20;
            this.txt_LoginName.Name = "txt_LoginName";
            this.txt_LoginName.Size = new Size(0xab, 0x15);
            this.txt_LoginName.TabIndex = 0;
            this.txt_LoginName.KeyPress += new KeyPressEventHandler(this.txt_LoginName_KeyPress);
            this.panel_td1.Controls.Add(this.lbl_ChainName);
            this.panel_td1.Dock = DockStyle.Left;
            this.panel_td1.Location = new Point(0, 0);
            this.panel_td1.Name = "panel_td1";
            this.panel_td1.Size = new Size(200, 0x19);
            this.panel_td1.TabIndex = 0;
            this.panel_td1.Paint += new PaintEventHandler(this.panel_td1_Paint);
            this.lbl_ChainName.Location = new Point(0x6d, 6);
            this.lbl_ChainName.Name = "lbl_ChainName";
            this.lbl_ChainName.Size = new Size(0x54, 12);
            this.lbl_ChainName.TabIndex = 0;
            this.lbl_ChainName.Text = "员工登录名:";
            this.lbl_ChainName.TextAlign = ContentAlignment.MiddleRight;
            this.panel_BiTian.Controls.Add(this.lbl_BiTian);
            this.panel_BiTian.Dock = DockStyle.Top;
            this.panel_BiTian.Location = new Point(0, 0);
            this.panel_BiTian.Name = "panel_BiTian";
            this.panel_BiTian.Size = new Size(800, 0x19);
            this.panel_BiTian.TabIndex = 6;
            this.panel_BiTian.Paint += new PaintEventHandler(this.panel_BiTian_Paint);
            this.lbl_BiTian.AutoSize = true;
            this.lbl_BiTian.Location = new Point(10, 6);
            this.lbl_BiTian.Name = "lbl_BiTian";
            this.lbl_BiTian.Size = new Size(0x35, 12);
            this.lbl_BiTian.TabIndex = 0;
            this.lbl_BiTian.Text = "必填项目";
            this.panel_Button.Controls.Add(this.lbl_TiShi2);
            this.panel_Button.Controls.Add(this.lbl_TiShi);
            this.panel_Button.Controls.Add(this.btn_Close);
            this.panel_Button.Controls.Add(this.btn_Save);
            this.panel_Button.Dock = DockStyle.Bottom;
            this.panel_Button.Location = new Point(0, 0xc9);
            this.panel_Button.Name = "panel_Button";
            this.panel_Button.Size = new Size(800, 0x2b);
            this.panel_Button.TabIndex = 5;
            this.panel_Button.Paint += new PaintEventHandler(this.panel_Button_Paint);
            this.lbl_TiShi2.AutoSize = true;
            this.lbl_TiShi2.Location = new Point(570, 15);
            this.lbl_TiShi2.Name = "lbl_TiShi2";
            this.lbl_TiShi2.Size = new Size(0xcb, 12);
            this.lbl_TiShi2.TabIndex = 15;
            this.lbl_TiShi2.Text = "使用小技巧: Ctrl+S 快速保存 记录.";
            this.lbl_TiShi.AutoSize = true;
            this.lbl_TiShi.Location = new Point(10, 15);
            this.lbl_TiShi.Name = "lbl_TiShi";
            this.lbl_TiShi.Size = new Size(0xef, 12);
            this.lbl_TiShi.TabIndex = 14;
            this.lbl_TiShi.Text = "使用小技巧:回车(Enter)跳到下一个输入项.";
            this.btn_Close.Location = new Point(0x1ad, 10);
            this.btn_Close.Name = "btn_Close";
            this.btn_Close.Size = new Size(0x4b, 0x17);
            this.btn_Close.TabIndex = 1;
            this.btn_Close.Text = "关 闭";
            this.btn_Close.UseVisualStyleBackColor = true;
            this.btn_Close.Click += new EventHandler(this.btn_Close_Click);
            this.btn_Save.Location = new Point(0x128, 10);
            this.btn_Save.Name = "btn_Save";
            this.btn_Save.Size = new Size(0x4b, 0x17);
            this.btn_Save.TabIndex = 0;
            this.btn_Save.Text = "保 存";
            this.btn_Save.UseVisualStyleBackColor = true;
            this.btn_Save.Click += new EventHandler(this.btn_Save_Click);
            this.panel9.Dock = DockStyle.Bottom;
            this.panel9.Location = new Point(0, 0xf4);
            this.panel9.Name = "panel9";
            this.panel9.Size = new Size(800, 5);
            this.panel9.TabIndex = 3;
            this.pan_Rights.Dock = DockStyle.Right;
            this.pan_Rights.Location = new Point(810, 10);
            this.pan_Rights.Name = "pan_Rights";
            this.pan_Rights.Size = new Size(10, 0xf9);
            this.pan_Rights.TabIndex = 3;
            this.pan_Lefts.Dock = DockStyle.Left;
            this.pan_Lefts.Location = new Point(0, 10);
            this.pan_Lefts.Name = "pan_Lefts";
            this.pan_Lefts.Size = new Size(10, 0xf9);
            this.pan_Lefts.TabIndex = 2;
            this.pan_Bottoms.Dock = DockStyle.Bottom;
            this.pan_Bottoms.Location = new Point(0, 0x103);
            this.pan_Bottoms.Name = "pan_Bottoms";
            this.pan_Bottoms.Size = new Size(820, 10);
            this.pan_Bottoms.TabIndex = 1;
            this.pane_TopT.Dock = DockStyle.Top;
            this.pane_TopT.Location = new Point(0, 0);
            this.pane_TopT.Name = "pane_TopT";
            this.pane_TopT.Size = new Size(820, 10);
            this.pane_TopT.TabIndex = 0;
            this.pan_DockBottom.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockBottom.Dock = DockStyle.Bottom;
            this.pan_DockBottom.Location = new Point(1, 0x10d);
            this.pan_DockBottom.Name = "pan_DockBottom";
            this.pan_DockBottom.Size = new Size(820, 1);
            this.pan_DockBottom.TabIndex = 2;
            this.pan_DockRight.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockRight.Dock = DockStyle.Right;
            this.pan_DockRight.Location = new Point(0x335, 0);
            this.pan_DockRight.Name = "pan_DockRight";
            this.pan_DockRight.Size = new Size(1, 270);
            this.pan_DockRight.TabIndex = 1;
            this.pan_Top.Controls.Add(this.pan_ZhongJian);
            this.pan_Top.Controls.Add(this.pan_TopRight);
            this.pan_Top.Controls.Add(this.pan_TopLeft);
            this.pan_Top.Dock = DockStyle.Top;
            this.pan_Top.Location = new Point(0, 0);
            this.pan_Top.Name = "pan_Top";
            this.pan_Top.Size = new Size(0x336, 0x20);
            this.pan_Top.TabIndex = 4;
            this.pan_TopLeft.BackgroundImage = Resources.uc_title;
            this.pan_TopLeft.Dock = DockStyle.Left;
            this.pan_TopLeft.Location = new Point(0, 0);
            this.pan_TopLeft.Name = "pan_TopLeft";
            this.pan_TopLeft.Size = new Size(0x1f, 0x20);
            this.pan_TopLeft.TabIndex = 0;
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new Size(0x336, 0x12e);
            base.Controls.Add(this.pan_Dock);
            base.Controls.Add(this.pan_Top);
            base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "FrmUserAdd";
            base.ShowInTaskbar = false;
            this.Text = "新增连锁店";
            base.Load += new EventHandler(this.FrmUserAdd_Load);
            this.pan_ZhongJian.ResumeLayout(false);
            this.pan_ZhongJian.PerformLayout();
            this.pan_Dock.ResumeLayout(false);
            this.pan_AllPanel.ResumeLayout(false);
            this.pan_AllPlanes.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.panel3.ResumeLayout(false);
            this.panel3.PerformLayout();
            this.panel4.ResumeLayout(false);
            this.panel4.PerformLayout();
            this.panel5.ResumeLayout(false);
            this.panel5.PerformLayout();
            this.panel6.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.pan_16.ResumeLayout(false);
            this.pan_15.ResumeLayout(false);
            this.pan_15.PerformLayout();
            this.pan_14.ResumeLayout(false);
            this.pan_14.PerformLayout();
            this.pan_td13.ResumeLayout(false);
            this.panel_XuanTian.ResumeLayout(false);
            this.panel_XuanTian.PerformLayout();
            this.panel_table3.ResumeLayout(false);
            this.pan_td12.ResumeLayout(false);
            this.pan_td11.ResumeLayout(false);
            this.pan_td10.ResumeLayout(false);
            this.pan_td9.ResumeLayout(false);
            this.pan_Table2.ResumeLayout(false);
            this.pan_td8.ResumeLayout(false);
            this.pan_td8.PerformLayout();
            this.pan_td7.ResumeLayout(false);
            this.pan_td6.ResumeLayout(false);
            this.pan_td6.PerformLayout();
            this.pan_td5.ResumeLayout(false);
            this.pan_Table1.ResumeLayout(false);
            this.panel_td4.ResumeLayout(false);
            this.panel_td4.PerformLayout();
            this.panel_td3.ResumeLayout(false);
            this.panel_td2.ResumeLayout(false);
            this.panel_td2.PerformLayout();
            this.panel_td1.ResumeLayout(false);
            this.panel_BiTian.ResumeLayout(false);
            this.panel_BiTian.PerformLayout();
            this.panel_Button.ResumeLayout(false);
            this.panel_Button.PerformLayout();
            this.pan_Top.ResumeLayout(false);
            base.ResumeLayout(false);
        }

        private void pan_14_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_14, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_15_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_15, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_16_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_16, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td10_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td10, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td11_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td11, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td12_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td12, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td13_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td13, Color.FromArgb(0xca, 0xc9, 0xce), 1, 0, 1, 1);
        }

        private void pan_td5_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td5, Color.FromArgb(0xca, 0xc9, 0xce), 1, 0, 1, 1);
        }

        private void pan_td6_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td6, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td7_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td7, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td8_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td8, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void pan_td9_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_td9, Color.FromArgb(0xca, 0xc9, 0xce), 1, 0, 1, 1);
        }

        private void pan_TopLeft_MouseDown(object sender, MouseEventArgs e)
        {
            ReleaseCapture();
            SendMessage(base.Handle, 0x112, 0xf012, 0);
        }

        private void pan_ZhongJian_MouseDown(object sender, MouseEventArgs e)
        {
            ReleaseCapture();
            SendMessage(base.Handle, 0x112, 0xf012, 0);
        }

        private void panel_BiTian_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel_BiTian, Color.FromArgb(0xca, 0xc9, 0xce), 1, 1, 1, 0);
        }

        private void panel_Button_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel_Button, Color.FromArgb(0xca, 0xc9, 0xce), 1, 1, 1, 1);
        }

        private void Panel_ResetPaint(PaintEventArgs e, Panel panel, Color color, int leftBoder, int topBoder, int rightBoder, int bottomBoder)
        {
            ControlPaint.DrawBorder(e.Graphics, panel.ClientRectangle, color, leftBoder, ButtonBorderStyle.Solid, color, topBoder, ButtonBorderStyle.Solid, color, rightBoder, ButtonBorderStyle.Solid, color, bottomBoder, ButtonBorderStyle.Solid);
        }

        private void panel_td1_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel_td1, Color.FromArgb(0xca, 0xc9, 0xce), 1, 1, 1, 1);
        }

        private void panel_td2_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel_td2, Color.FromArgb(0xca, 0xc9, 0xce), 0, 1, 1, 1);
        }

        private void panel_td3_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel_td3, Color.FromArgb(0xca, 0xc9, 0xce), 0, 1, 1, 1);
        }

        private void panel_td4_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel_td4, Color.FromArgb(0xca, 0xc9, 0xce), 0, 1, 1, 1);
        }

        private void panel_XuanTian_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel_XuanTian, Color.FromArgb(0xca, 0xc9, 0xce), 1, 1, 1, 1);
        }

        private void panel3_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel3, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void panel4_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel4, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void panel5_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel5, Color.FromArgb(0xca, 0xc9, 0xce), 0, 0, 1, 1);
        }

        private void panel6_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.panel6, Color.FromArgb(0xca, 0xc9, 0xce), 1, 0, 1, 1);
        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            return ((keyData == Keys.Tab) || base.ProcessCmdKey(ref msg, keyData));
        }

        [DllImport("user32.dll")]
        public static extern bool ReleaseCapture();
        [DllImport("user32.dll")]
        public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
        private void txt_CUserPass_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.combo_RoleName.Select();
            }
        }

        private void txt_HandSet_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.dateTime_Birthday.Select();
            }
        }

        private void txt_IdCode_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.btn_Save.Select();
            }
        }

        private void txt_LoginName_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.txt_UserName.Select();
            }
        }

        private void txt_QQNum_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.txt_IdCode.Select();
            }
        }

        private void txt_UserName_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.txt_UserPass.Select();
            }
        }

        private void txt_UserPass_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\r')
            {
                this.txt_CUserPass.Select();
            }
        }
    }
}

